package com.ruoyi.project.tool.mtcnn;




import java.io.IOException;

/**
 * @author
 * @date 2023/11/6、20:58
 */
public class PythonProcessTest {


    public static void main(String[] args) {
        try {
            String imagePath = "D:\\Img_face\\11.jpg";
            PythonProcessor pythonProcessor = new PythonProcessor();
            pythonProcessor.startPythonProcess();

            String result = pythonProcessor.processImage(imagePath);
            System.out.println("Processing result: " + result);

            // 关闭
            pythonProcessor.closePythonProcess();
        } catch (IOException e) {
            e.printStackTrace();
        }
    }
}
